package com.info33.platform.system.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.info33.platform.common.mvc.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 系统 - 管理端 app - 菜单 - 用户/角色/全部 关联
 * 
 * @author admin
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SysAppMenuRole extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "菜单 id【app_tenant_menu】")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long menuId;

    @ApiModelProperty(value = "角色 id【app_role】")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long roleId;

    @ApiModelProperty(value = "用户 id【app_tenant_user】")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    @ApiModelProperty(value = "类型：1/指定角色、2/指定用户、3/全部")
    private Integer type;

}